<template>
  <div>
    <!-- 进度条 -->
    <section class="progress">
      <span class="top">{{ value * 100 }}%</span>
      <div class="center">
        <div class="content" :style="{ height: value * 100 + '%' }"></div>
      </div>
      <span class="bottom">进度</span>
    </section>
  </div>
</template>

<script>
export default {
  name: 'myProgress',
  props: ['value']
}
</script>

<style lang="less" scoped>
// 进度条
.progress {
  position: fixed;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 149px;
  background-color: #fff;
  text-align: center;
  span.top {
    line-height: 28px;
    color: rgb(38, 38, 38);
    font-size: 12px;
  }
  span.bottom {
    line-height: 24px;
    color: #8c8c8c;
    font-size: 12px;
  }
  .center {
    margin: 0 auto;
    width: 8px;
    height: 100px;
    background-color: #E8E8E8;
    .content {
      margin: 0 auto;
      width: 4px;
      background-color: #0095ff;
    }
  }
}
</style>